import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import render from '@dfeidao/atom-web/render/render';
import p001 from './p001';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import Paging from '@dfeidao/fd-w000010';

export default async function a008(fd: IFeidaoAiBrowserComponent, e: { page_no: number }) {
	// 分页
	const page_no = e.page_no;
	const res = await nodejs('risk-point/zj-000008/s001', {
		filter: {
			page_no: page_no,
			hidden_source: '',
			hidden_name: '',
		}
	});
	render(fd, res, p001, 'p001', 'inner');

	//点击页码数时页码随之改变
	const p = fd.data.node.querySelector<Paging>('[data-id="paging"]')
	p.setAttribute('page-no', page_no + '');
}
